﻿using System;
using System.Collections.Generic;
using ControleRepresentante.Common;
using ControleRepresentante.Logic.Models;
using WebSite.ViewModels.Fields;

namespace WebSite.ViewModels.ViewModelExtensions.EditViewModelExtensions
{
    public class RelatorioVisitaJolitexEditViewModel : JolitexEditViewModel<RelatorioVisita>
    {
        protected override IEnumerable<IField> GetGeralAdditionalFields(RelatorioVisita model)
        {
            DropDownListField dropDownListField = new DropDownListField("Ocorrência", "ocorrencia");
            foreach (RelatorioVisitaJolitexOcorrencia ocorrencia in Enum.GetValues(typeof(RelatorioVisitaJolitexOcorrencia)))
            {
                dropDownListField.Add(ocorrencia.GetDescription(), ocorrencia, false);
            }
            yield return dropDownListField;
        }
    }
}